<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>计次消费</title>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/reset.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/common.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome.min.css">
<!--公共样式结束-->
<!--页面样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/module_form.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/page_jiciList.css">
<!--页面样式结束--
<!--公共JS开始-->
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.min.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.timer.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Js/common.js"></script>
<!--公共JS结束-->
<!--数据列表插件开始-->
<link href="{$NOW_THEME_URL}/Assets/Plugins/ContextMenu/src/jquery.contextMenu.css" rel="stylesheet" type="text/css" />
<script src="{$NOW_THEME_URL}/Assets/Plugins/ContextMenu/src/jquery.ui.position.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Plugins/ContextMenu/src/jquery.contextMenu.js"></script>
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/Etgrid/Css/etgrid.css">
<script src="{$NOW_THEME_URL}/Assets/Plugins/Etgrid/Js/etgrid.js"></script>
<!--数据列表插件结束-->
<style type="text/css">
	body {
		overflow:hidden;
	}
</style>
</head>

<body>
	<div class="yhlist clearfix">
		<div class="table_box1">
		暂无消费信息，请刷卡
			<form action="" method="post" id="memberAdd_form">
			
		<!-- 
				<table cellpadding="0" cellspacing="0" class="module_form" width="100%">
					<tr>
						<th class="center">计次项目</th>
						<th class="center">可用次数</th>
						<th class="center">剩余次数</th>
						<th class="center">备注</th>
						<th class="center">操作</th>
					</tr>
					<tr>
						<td class="center">洗发</td>
						<td class="center">10</td>
						<td class="center">8</td>
						<td class="center">12454</td>
						<td><a class="form_ele_submit nowxf">立即消费</td>
					</tr>
					<tr>
						<td class="center">美容</td>
						<td class="center">5</td>
						<td class="center">4</td>
						<td class="center">人个体户</td>
						<td><a class="form_ele_submit nowxf">立即消费</td>
					</tr>
					<tr>
						<td class="center">洗发</td>
						<td class="center">10</td>
						<td class="center">8</td>
						<td class="center">12454</td>
						<td><a class="form_ele_submit nowxf">立即消费</td>
					</tr>
				</table> 
		-->
				
			</form>
		</div>
		<div class="xiaofei">
			<div class="js clearfix">
				<div>
					<a class="form_ele_reset bg_orange" id="readcard">读卡</a>
					<a href="" class="form_ele_reset">清空</a>
					<a href="" class="form_ele_reset">备忘</a>
				</div>
				<div><input type="text" id="cardno"  class="redecard_input"/></div>
			</div>
			<div class="zhezhao"></div>
			<div class="vip">
				<h4>会员信息</h4>
				<form action="" method="post" id="memberAdd_form">
					<table cellpadding="0" cellspacing="0" class="module_form" width="100%">
						<tr>
							<td class="ele_title"><label for="cardnum">会员卡号：</label></td>
							<td class="ele_content"><input name="" type="text" id="cardnum" class="form_ele_text width_200" value="" readonly></td>
							<td class="ele_title"><label for="level">会员级别：</label></td>
							<td class="ele_content"><input name="" type="text" id="level" class="form_ele_text width_200" value="" readonly></td>
						</tr>
						<tr>
							<td class="ele_title"><label for="realname">姓名：</label></td>
							<td class="ele_content"><input name="" type="text" id="realname" class="form_ele_text width_200" value="" readonly></td>
							<td class="ele_title"><label for="sex">性别：</label></td>
							<td class="ele_content"><input name="" type="text" id="sex" class="form_ele_text width_200" value="" readonly></td>
						</tr>
						<tr>
							<td class="ele_title"><label for="phone">手机号码：</label></td>
							<td class="ele_content"><input name="" type="text" id="phone" class="form_ele_text width_200" value="" readonly></td>
							<td class="ele_title"><label for="telphone">固定电话：</label></td>
							<td class="ele_content"><input name="" type="text" id="telphone" class="form_ele_text width_200" value="" readonly></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	
	//表格隔行换色
	$('.module_form tr:odd').addClass('odd');
	$('.module_form tr:even').addClass('even');
	
	//列表自适应
	function table_box1Show(){
		var yh_height =  $(window).height() - 230;
		$('.table_box1').height(yh_height);
	}
	//初始化调用
	table_box1Show();
	//窗口改变大小调用
	$(window).on('resize',function(){
		table_box1Show();
	});
	
	//
	$("#readcard").on("click",function(){
		var vipno = $("#cardno").val();
		if(vipno==""){
			windowApi.lhgdialog.alert('请输入会员卡卡号或者电话号码！');
		}else{
			$.get("{:U('Sell/readCard')}",{vipno:vipno},function(d){
				
			});
		}
		
	});
	
	//打开立即消费
	$('.nowxf').on('click',function(){
		var href = '__URL__/countCustom';
		var width = '380px';
		var height = '250px';
		var title = '立即消费';
		openDialog('Sell_countCustom',href,width,height,title);
	});
</script>
</html>
